// 获取页面的元素
// <a id="link" href="http://itcast.cn/">传智播客</a>

//
const aLink2 = document.getElementById('link');

const aLink = document.getElementById('link') as HTMLAnchorElement;
aLink.href;
